import App from '@/App.vue'
import CompanyDetail from '@/views/CompanyDetail.vue'
import CompanyEdit from '@/views/CompanyEdit.vue'
import CompanyPage from '@/views/CompanyPage.vue'
import CompanySave from '@/views/CompanySave.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path:'/' ,redirect:'/app'},
    {path:'/companySave' ,component:CompanySave},
    {path:'/companyDetail/:id' ,component:CompanyDetail},
    {path:'/companyPage' , component:CompanyPage},
    {path:'/companyEdit/:id' , component:CompanyEdit},
  ],
})

export default router
